<br />
<span style="font-weight:bold;font-size:16px;">Use WinPoints to earn free Wins</span><br/><br/>

<table class="lister"> 
<thead style="text-align:center;">
    <td>Description</td>
    <td>WinPoints</td>
    <td></td>
</thead>
<tbody>
<tr><td style="text-align:left;">&nbsp;&nbsp;Only&nbsp;&nbsp;<span style="display:inline-block; vertical-align:middle"><%=image_tag"13wins.png"%></span>&nbsp;&nbsp;required for next streak</td><td>500</td><td style="valign:middle;">
<%if current_user.bought_win?%>
   <%=image_tag"sold.gif"%>
<%else%>
   <%=link_to "Buy",only_buy_wins_path,:class=>"reset-bets",:style=>"background:url(#{facebook_image_url('orange_header.gif')}) repeat-x;"%>
<%end%>
</td></tr>
<tr><td style="text-align:left;">&nbsp;&nbsp;Free&nbsp;&nbsp;<span style="display:inline-block; vertical-align:middle"><%=image_tag"win.png"%></span>&nbsp;&nbsp;for current streak</td><td><%=PointConfig.find_by_name_and_level("free",@level).point%></td><td><%=link_to "Buy",free_buy_wins_path + "?level=" + @level.to_s,:class=>"reset-bets",:style=>"background:url(#{facebook_image_url('orange_header.gif')}) repeat-x;",:confirm=> ' Are you sure?'%></td></tr>
</tbody></table>


<table class="lister">
<thead>
  <tr>
    <th>User</th>
    <th>Point config</th>
    <th>Winstreak</th>
  </tr>
</thead>

<% for buy_win in @buy_wins %>
  <tr>
    <td><%=h buy_win.user_id %></td>
    <td><%=h buy_win.point_config_id %></td>
    <td><%=h buy_win.winstreak_id %></td>
    <td><%= link_to 'Show', buy_win %></td>
    <td><%= link_to 'Edit', edit_buy_win_path(buy_win) %></td>
    <td><%= link_to 'Destroy', buy_win, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New buy_win', new_buy_win_path %><br/><br/>

<span style="font-weight:bold;font-size:16px;">Invite friends to earn WinPoints</span><br/><br/>


<span style="font-weight:bold;font-size:16px;">Buy WinPoints</span><br/><br/>


<span style="font-weight:bold;font-size:16px;">Earn WinPoints through rewards</span><br/><br/>
